<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="attribute" tagdir="/WEB-INF/tags/attribute"%>

<c:forEach items="${productType.productAttGroups}"	var="group">
	<table class="com_modi_table" width="100%">
		<tr>
			<th colspan="2" class="title"><h4>${group.productAttGroupName}<h4></th>
		</tr>
		<c:forEach items="${group.activeProductAttGroupItems}" var="attItem">
			<tr>
				<th class="label_width_1">
					${attItem.attribute.attributeName}
					<c:if test="${attItem.attribute.isRequired ==1}">(<span class="red">*</span>)</c:if>:
				</th>
				<td>
					<attribute:inputStyle type="${attItem.attribute.attributeDataType}"/>
					<attribute:input cssName="${returnClassName}" cssStyle="${returnStyleName}"  isdisplayHelp="true"	attribute="${attItem.attribute}" entity="${product}"></attribute:input> 
				</td>
			</tr>
		</c:forEach>
	</table>
</c:forEach>
<c:if test="${fn:length(productType.productAttGroups)==0}">
	<table class="com_modi_table" width="100%">
		<tr>
			<td colspan="2">
				<b><fmt:message key="productForm.attr.noattr"/></b>
			</td>
		</tr>
	</table>	
</c:if>
	

